package com.ruoyi.system.module.deptSynchron.service.impl;

import com.ruoyi.system.api.domain.SysUser;
import com.ruoyi.system.domain.SysUserRole;
import com.ruoyi.system.module.deptSynchron.mapper.UserSyncMapper;
import com.ruoyi.system.module.deptSynchron.service.IUserSyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 部门管理 服务实现
 *
 * @author kokor
 */
@Service
public class UserSyncServiceImpl implements IUserSyncService {
    @Autowired
    private UserSyncMapper userSyncMapper;

    @Override
    public List<String> selectUsernameList() {
        return userSyncMapper.selectUsernameList();
    }

    @Override
    public void insertUser(SysUser sysUser) {
        userSyncMapper.insertUser(sysUser);
    }

    @Override
    public void updateUserByUserName(SysUser sysUser){
        userSyncMapper.updateUserByUserName(sysUser);
    }

    @Override
    public void insertUserRole(SysUserRole sysUserRole) {
        userSyncMapper.insertUserRole(sysUserRole);
    }
}
